/*
 * @Author: lsl1201
 * @Date: 2023-08-16 10:18:45
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2023-08-18 14:45:31
 */
import { createApp } from 'vue'
import App from './App.vue'

// 导入路由
import router from './router'
// 导入pinia
import { createPinia } from 'pinia'
// 导入pinia持久化插件
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

// 导入element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import './utils/axios.config.js'


const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

// 导入粒子特效
import Particles from 'vue3-particles'



const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

createApp(App)
    .use(router)
    .use(pinia)
    .use(ElementPlus)
    .use(Particles)
    .mount('#app')
